package com.bsoft.gol.hcs.enumcase;

/**
 * @author tongtp
 * @version v0.1
 * @package enumcase
 * @className ApplyTypeEnum
 * @description 专病随访入组方式
 * @create 2022-05-27 14:43
 **/
public enum ApplyTypeEnum {
	//入组方式：1扫码入组 2院内导入  3手动入组
	SCAN("1", "申请入组"),
	IMPORT("2", "院内导入"),
	MANUAL("3", "手动入组");

	private final String type;

	private final String name;

	ApplyTypeEnum(String type, String name) {
		this.type = type;
		this.name = name;
	}

	public static String getNameByKey(String type) {
		for (ApplyTypeEnum temp : ApplyTypeEnum.values()) {
			if (temp.getType().equals(type)) {
				return temp.name;
			}
		}
		return null;
	}

	public String getType() {
		return type;
	}

	public String getName() {
		return name;
	}
}
